package com.example.entity;

import com.example.entity.parent.Parent;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;

@Data
@Entity
@Table(name = "collection")
@ApiModel
public class Collection extends Parent {

    @Column(name = "user_id", length = 30)
    @ApiModelProperty("用户id")
    private String userId;

    @Column(name = "topic_id", length = 30)
    @ApiModelProperty("主题id")
    private String topicId;

    @Transient
    @ApiModelProperty("主题名")
    private String topicName;

    @Column(name = "sentence_id", length = 30)
    @ApiModelProperty("句子id")
    private String sentenceId;

    @Transient
    @ApiModelProperty("句子内容")
    private String sentenceContent;

}
